/* =====================================================
   LYMANKONG WEB - LOGIN PAGE
   Styles aligned with the global site theme.
   ===================================================== */

body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: var(--font-body, "Inter", "Segoe UI", Arial, sans-serif);
    color: var(--white);
    background: #000;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../images/fond-connexion.jpeg') no-repeat center center/cover;
    z-index: -2;
    animation: zoomInOut 20s infinite alternate;
}

body.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.84), rgba(10, 17, 114, 0.76)),
        rgba(0, 0, 0, 0.45);
    z-index: -1;
}

body.login-page header {
    position: relative;
    width: 100%;
    padding: 1rem 5%;
    z-index: 3;
}

body.login-page .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: fit-content;
}

body.login-page .logo img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.18);
}

body.login-page .logo span {
    color: var(--glow);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

body.login-page .login-container {
    flex: 1;
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5% 3rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

body.login-page .login-container::after {
    display: none;
}

.login-card {
    position: relative;
    width: min(100%, 500px);
    overflow: hidden;
    padding: clamp(1.75rem, 4vw, 2.8rem);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(5, 5, 16, 0.88);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(18px) saturate(170%);
    animation: loginFadeIn 0.55s ease both;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--glow));
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.35rem;
}

.login-logo img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: var(--white);
}

.login-title {
    margin: 0 0 0.6rem;
    text-align: center;
    color: var(--gold);
    font-family: var(--font-heading, "Playfair Display", serif);
    font-size: 2.35rem;
    line-height: 1.1;
}

.login-subtitle {
    max-width: 34rem;
    margin: 0 auto 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.login-card .form-group {
    margin-bottom: 1.25rem;
}

.login-card .form-group label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    color: var(--white);
    font-weight: 700;
}

.login-card .form-group label i {
    color: var(--gold);
}

.login-card input {
    width: 100%;
    min-height: 52px;
    padding: 0 0.95rem;
    border: 1px solid rgba(65, 105, 225, 0.62);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.09);
    color: var(--white);
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.login-card input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.16);
}

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 3.25rem;
    letter-spacing: 0;
    font-weight: 700;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.25s ease, background 0.25s ease;
}

.toggle-password:hover,
.toggle-password:focus-visible {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.remember-container {
    margin: 0.2rem 0 1.65rem;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    cursor: pointer;
}

.remember-label input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.login-btn {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: var(--primary-blue);
    font-family: var(--font-accent, "Poppins", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.login-btn:hover,
.login-btn:focus-visible {
    background: var(--glow);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.login-btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.login-message {
    min-height: 24px;
    margin-top: 1.1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
}

.login-message:empty {
    padding: 0;
    background: transparent;
}

.login-message.success {
    color: #55efc4;
    background: rgba(0, 184, 148, 0.12);
}

.login-message.error {
    color: #ff9f9f;
    background: rgba(255, 118, 117, 0.12);
}

body.login-page footer {
    position: relative;
    z-index: 2;
    padding: 1rem 5% 1.5rem;
    background: transparent;
    border: 0;
    text-align: center;
}

body.login-page .footer-bottom {
    color: rgba(255, 255, 255, 0.72);
}

body.light-mode.login-page {
    color: var(--primary-blue);
}

body.light-mode.login-page::after {
    background: rgba(244, 246, 248, 0.74);
}

body.light-mode.login-page .login-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(10, 17, 114, 0.12);
    box-shadow: 0 20px 45px rgba(10, 17, 114, 0.18);
}

body.light-mode.login-page .login-title,
body.light-mode.login-page .form-group label {
    color: var(--primary-blue);
}

body.light-mode.login-page .login-subtitle,
body.light-mode.login-page .remember-label,
body.light-mode.login-page .footer-bottom {
    color: rgba(10, 17, 114, 0.72);
}

body.light-mode.login-page .login-card input {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-blue);
    border-color: rgba(10, 17, 114, 0.22);
}

body.light-mode.login-page .login-card input::placeholder {
    color: rgba(10, 17, 114, 0.48);
}

body.light-mode.login-page .toggle-password {
    color: rgba(10, 17, 114, 0.68);
}

body.light-mode.login-page .login-message {
    color: var(--primary-blue);
    background: rgba(10, 17, 114, 0.06);
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body.login-page header {
        padding: 0.85rem 1rem;
    }

    body.login-page .logo img {
        width: 72px;
        height: 72px;
    }

    body.login-page .login-container {
        padding: 1.5rem 1rem 2rem;
        align-items: flex-start;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .login-logo img {
        width: 82px;
        height: 82px;
    }

    .login-card input,
    .login-btn {
        min-height: 50px;
    }

    .login-title {
        font-size: 1.75rem;
    }
}
